// ==Badget==
// @name          Google Reader iGoogle Gadget Unread Count
// @description	  Returns the number of unread items on the iGoogle Reader gadget
// @include       http://www.google.com/ig*
// ==/Badget==

var badgeStyle = {
  fontSize : 10,
  badgeX : 22,
  badgeY : 6,
  badgeRadius : 5.5,
  badgeColor : "rgb(256,0,0)",
  textColor : "rgb(256,256,256)"
};

function doAction()  {
	r = document.getElementsByTagName("body")[0].innerHTML.match(/All items \((\d+)\)/);
	if (r!=null) {
		return r[1];
	}else{
		return null;
	}
}
